package com.hmall.common.Cilents;

import com.hmall.common.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description UserClient
 * @Author liujiangyuan
 * @Date 2024-11-15-19:52
 */
@FeignClient("userservice")
@RequestMapping("address")
public interface UserClient {
    @GetMapping("/{addressId}")
    public Address findAddressByaddressId(@PathVariable("addressId") Long addressId);
}
